/**
 * 导航,首页
 */ 
import React,{Component} from 'react';
import { connect } from 'react-redux';
import Tabbar from './components/Tabbar';
import store from './redux/store';
import MRouter from './route/IndexRouter';
// import { Button } from 'antd-mobile'//导入button组件
class Zhuye3 extends Component{
  //store.subscribe订阅
  state={
    flag:true
  }
  componentDidMount(){
    console.log(this.props)
  }
  render() {
    return (  
      <div>
        {/* <Button block color='primary' size='large'>antd按钮</Button> */}
        <MRouter>
          {this.props.isShow&&<Tabbar></Tabbar>}
        </MRouter>
      </div>
    );
  };
};
export default connect((state)=>{
  console.log(state)
  return{
    a:1,
    b:1,
    isShow:state.TabbarReducer.isShow
  }
})(Zhuye3)
